/*
 * Copyright 2016-2017 TVI Go Easy.
 * Created on 2017/4/26 23:46
 */
package org.mechanic.fund.web.utils;

import org.springframework.data.domain.PageRequest;

/**
 * 分页参数的一些方法
 *
 * @author mechanic
 * @version 0.0.1
 */
public class PageUtil {

    private final static Integer PAGE_SIZE = 10;

    public static PageRequest pageRequest (int page) {
        return pageRequest(page, PAGE_SIZE);
    }

    public static PageRequest pageRequest (int page, int size) {
        return new PageRequest(page, size);
    }
}
